﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(TweenMake))]
public class TweenMakeEditor : Editor
{
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        if (GUILayout.Button("Play"))
        {
            TweenMake tweenMake = (TweenMake)target;
            tweenMake.Play();
        }
        if (GUILayout.Button("AllPlay"))
        {
            TweenMake tweenMake = (TweenMake)target;
            tweenMake.AllPlay();
        }
        if (GUILayout.Button("PrintLuaCode"))
        {
            TweenMake tweenMake = (TweenMake)target;
            tweenMake.PrintLuaCode();
        }
    }
}
